package cn.cubix.flow.mapper;

import cn.cubix.flow.entity.WfPrms;
import cn.cubix.flow.entity.WfPrmsRole;
import cn.cubix.flow.entity.WfRole;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WfPrmsRoleMapper extends BaseMapper<WfPrmsRole> {
    Page<WfPrmsRole> pageByUserId(Page<WfPrmsRole> page, @Param("userId")String userId, @Param(Constants.WRAPPER) Wrapper<WfRole> ew);
    Page<WfPrmsRole> pageByRoleId(Page<WfPrmsRole> page, @Param("roleId")String roleId, @Param(Constants.WRAPPER) Wrapper<WfRole> ew);
    Page<WfPrms> pagePrmsAvailable(Page<WfPrms> page, @Param("roleId")String userId, @Param(Constants.WRAPPER) Wrapper<WfPrms> ew);
}
